home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Orlando_1993 / Devcon93.4 / Networking2 / AS225 / include / inetd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-11  |  594 b   |  21 lines

  1. /*
  2.  * Format of inetd startup message.  This is sent to server by inetd
  3.  * when the server is forked.  The idea is that the server should
  4.  * perform some short initialization and then reply to the message.
  5.  * inetd will time out after a few seconds of waiting if this message
  6.  * is not returned.
  7.  */
  8.  
  9. #include <exec/types.h>
  10. #include <exec/ports.h>
  11.  
  12. struct INETDmsg {
  13.     struct Message in_msg;
  14.     void     *in_sock;    /* socket that will be stdin/stdout    */
  15.     short    in_errno;    /* error number                */
  16.     char    future[32];    /* room for some expansion        */
  17. };
  18.  
  19. #define INETD_TIMEOUT    (10*50)
  20. #define INETD_RETRY    (5)
  21.